package com.ethink.mdm.api;

import com.ethink.mdm.api.info.BrandInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * mateSku Facade接口
 *
 * @author default
 * @date 2022-10-31
 */
@FeignClient(name = "ethink-mdm-service", path = "mdm-service/facade/v1/brand", contextId = "brandFacade")
public interface BrandFacade {

    @PostMapping("/listBrandByMateGroup")
    @ResponseBody
    List<BrandInfo> listBrandByMateGroup(@RequestParam("mateGroup") Integer mateGroup);

    @PostMapping("/listBrandByMateGroupAndCodeList")
    @ResponseBody
    List<BrandInfo> listBrandByCodeList(@RequestBody List<String> codeList);


}